/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __ADC108_H__
#define __ADC108_H__

/* Includes ------------------------------------------------------------------ */
#include "stm32_spi.h"


#define ADC108_CHANNEL_0  0x00
#define ADC108_CHANNEL_1  0x08
#define ADC108_CHANNEL_2  0x10
#define ADC108_CHANNEL_3  0x18
#define ADC108_CHANNEL_4  0x20
#define ADC108_CHANNEL_5  0x28
#define ADC108_CHANNEL_6  0x30
#define ADC108_CHANNEL_7  0x38


int32_t ADC108_Init(void);
uint16_t ADC108_GetVal(uint8_t Channel);
int32_t ADC108_Get_AllVal(uint16_t *buffer);

#endif


